package com.oauth.global.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class NoApplicationMessage extends Composite {

	private static NoApplicationMessageUiBinder uiBinder = GWT
			.create(NoApplicationMessageUiBinder.class);

	interface NoApplicationMessageUiBinder extends UiBinder<Widget, NoApplicationMessage> {
	}

	@UiField
	Button addButton;
	
	public NoApplicationMessage() {
		initWidget(uiBinder.createAndBindUi(this));
		addButton.setHTML("<b>Add Website &raquo;</b>");
	}

	@UiHandler("addButton")
	public void onClick(ClickEvent e){
		Window.Location.assign("/home?show="+ManageInfo.APPLICATION_ID);
	}
}
